package org.jeecg.modules.temporary.mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.temporary.entity.DiyTemporaryApplicantInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @Description: 临时申请人表
 * @Author: jeecg-boot
 * @Date:   2020-07-18
 * @Version: V1.0
 */
@Mapper
public interface DiyTemporaryApplicantInfoMapper extends BaseMapper<DiyTemporaryApplicantInfo> {
    void deleteByuserid(String userid);
    DiyTemporaryApplicantInfo selectByuserid(String userid);
    void update02(@Param("photo02") String photo02,@Param("userid") String userid);
    void update03(@Param("remark") String remark,@Param("userid") String userid);
    void update04(@Param("remark") String remark,@Param("userid") String userid);
    /*
     * 修改临时申请人不能进行提交
     * */
    void updateIsDisabled(String userid);
    /*
     * 修改临时申请人能进行提交
     * */
    void updateIsDisabled02(String userid);

    /*
     * 修改临时申请人点击保存的状态为3
     * */
    void updateIsDisabled03(String userid);

    /*
     * 查询临时申请人能否进行提交
     * */
    int selectIsDisabled(String userid);
    /*
     * 查询临时申请人能提交或者保存
     * */
    DiyTemporaryApplicantInfo seletidNull(String userid);

    /*
    *  根据用户ding_user_id删除临时申请表中的数据
     */
    @Delete("delete from diy_temporary_applicant_info where ding_user_id=#{userid}" )
    void deleByuserid(@Param("userid") String userid);
}
